#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"

int main()
{
	Stack stack;
	StackInit(&stack);
	StackPush(&stack, 1);

	StackPush(&stack, 2);
	StackPush(&stack, 3);
	int size = StackSize(&stack);
	printf("%d\n", size);
	StackPush(&stack, 4);
	StackPush(&stack, 5);

	while (!StackEmpty(&stack))
	{
		int top = StackTopElement(&stack);
		printf("%d ", top);
		StackPop(&stack);
	}
	StackDestroy(&stack);
	return 0;
}